package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.SalPlanDao;
import cn.com.bdqn.entity.SalPlan;
import cn.com.bdqn.service.SalPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SalPlanServiceImpl implements SalPlanService {

    @Autowired
    private SalPlanDao dao;

    @Override
    public int addSalPlan(SalPlan salPlan) {
        return dao.addSalPlan(salPlan);
    }

    @Override
    public int updateSalPlan(SalPlan salPlan) {
        return dao.updateSalPlan(salPlan);
    }

    @Override
    public int delSalPlan(Long plaId) {
        return dao.delSalPlan(plaId);
    }

    @Override
    public List<SalPlan> queryByPlaChcId(Long plaChcId) {
        return dao.queryByPlaChcId(plaChcId);
    }

    @Override
    public SalPlan queryByPlaId(Long plaId) {
        return dao.queryByPlaId(plaId);
    }
}
